/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.tsdemo.entity.rulemodule;

import java.util.Arrays;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fosung.frame.common.persistence.DataEntity;
import com.fosung.frame.modules.sys.entity.User;
import com.google.common.collect.Lists;

/**
 * 用户行业层级结构Entity
 * @author zhaofj
 * @version 2017-07-06
 */
public class RuleModule extends DataEntity<RuleModule> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户编号
	private String modelIds;		// 行业编号
	private String levelIds;		// 层级编号
	private List<String> modelIdsList= Lists.newArrayList(); 
	private List<String> levelIdsList= Lists.newArrayList(); 
	public RuleModule() {
		super();
	}

	public RuleModule(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=255, message="行业编号长度必须介于 0 和 255 之间")
	public String getModelIds() {
		return modelIds;
	}

	public void setModelIds(String modelIds) {
		this.modelIds = modelIds;
	}
	
	@Length(min=0, max=255, message="层级编号长度必须介于 0 和 255 之间")
	public String getLevelIds() {
		return levelIds;
	}

	public void setLevelIds(String levelIds) {
		this.levelIds = levelIds;
	}

	public List<String> getModelIdsList() {
		return modelIdsList;
	}

	public void setModelIdsList(List<String> modelIdsList) {
		this.modelIdsList = modelIdsList;
	}

	public List<String> getLevelIdsList() {
		return levelIdsList;
	}

	public void setLevelIdsList(List<String> levelIdsList) {
		this.levelIdsList = levelIdsList;
	}

	
}